package org.flint92.springboot.servlet.servlet;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.Writer;

/**
 * @author flint92
 */

public class MyServletWithBean extends HttpServlet {
    private static final long serialVersionUID = -5056120946506238411L;

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp)
            throws ServletException, IOException {

        Writer writer = resp.getWriter();

        writer.write("<html><body>Hello, World</body></html>");

        writer.close();
    }

}
